package System_;

public class SystemDemo03 {
    public static void main(String[] args) {

        //定义源数组
        int[] srcArray = {11,22,33,44,55,66};
        //定义目标数组
        int[] deskArray = new int[10];

        //进行数组元素的copy:把srcArray数组中从0索引开始的3个元素，从desArray数组中的1索引开始复制过去
        System.arraycopy(srcArray,0,deskArray,1,3);

        for (int i = 0; i < deskArray.length; i++) {
            if(i != deskArray.length - 1)
                System.out.print(deskArray[i] + ", ");
            else
                System.out.println(deskArray[i]);
        }
    }
}
